package com.gqz.patrol.app.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gqz.common.core.domain.RequestForm;
import com.gqz.patrol.app.entity.EnPatrolTaskPeriodEntity;
import com.gqz.patrol.vo.EnPatrolTaskPeriodVo;

import java.util.List;


/**
 * 能源-巡视工单_周期任务表
 */
public interface IEnPatrolTaskPeriodService extends IService<EnPatrolTaskPeriodEntity> {

    List<EnPatrolTaskPeriodVo> getById(String id);

    Page<EnPatrolTaskPeriodVo> page(RequestForm<EnPatrolTaskPeriodVo> requestForm);

    Long count(RequestForm<EnPatrolTaskPeriodVo> requestForm);

    int insert(List<EnPatrolTaskPeriodVo> forms);

    int update(List<EnPatrolTaskPeriodVo> forms);

    /**
     * 获取要生成的任务列表
     *
     * @param offsetDay
     * @return
     */
    public List<EnPatrolTaskPeriodVo> getPatrolPeriodTaskList(int offsetDay);
}
